package org.rcloud.io.mapper;

import org.rcloud.io.Utils.PersonalImage;
import org.rcloud.io.model.User;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    PersonalImage selectByArticleId(Integer articleId);

    PersonalImage selectByOpenid(String wxOpenid);

    User selectByKey(String wxOpenid);

    int updateByPrimaryKeySelective(User record);

    int updateBywxOpenid(User record);

    int updateByPrimaryKey(User record);

    List<User> selectLikeRealName(String realname);
}